using System;
using System.Collections.Generic;
using System.Text;

namespace MVCFramework.View
{
    public class GridSnapPoint : SnapPoint
    {
       BuildingBasicDomain . Point innerpoint;

        public GridSnapPoint(double x, double y, double z)
        {
            innerpoint = new BuildingBasicDomain.Point();
            innerpoint.X = x;
            innerpoint.Y = y;
            innerpoint.Z = z;
        }

        public override double X
        {
            get
            {
                return innerpoint.X;
            }
            set
            {
                innerpoint.X = value;
            }
        }

        public override double Y
        {
            get
            {
                return innerpoint.Y;
            }
            set
            {
                innerpoint.Y = value;
            }
        }

        public override double Z
        {
            get
            {
                return innerpoint.Z;
            }
            set
            {
                innerpoint.Z = value;
            }
        }

        public override double this[int i]
        {
            get
            {
                return innerpoint[i];
            }
            set
            {
                innerpoint[i] = value;
            }
        }
    }
}
